<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>大美江西 - 诗画赣鄱</title>
    <link href="https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
    
    <style>
        /* 
         * 全局基础设置
         * 重置默认样式，定义全局变量，设置基础动画
         */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary-green: #2D6A4F;
            --primary-red: #BC3C29;
            --primary-brown: #5C4033;
            --secondary-blue: #2A9D8F;
            --secondary-yellow: #E9C46A;
            --white: #FFFFFF;
            --off-white: #F5F5F5;
            --gray-dark: #374151;
            --gray-light: #F3F4F6;
            --font-calligraphy: 'Ma Shan Zheng', cursive; /* 书法字体 */
            --font-sans: 'Noto Sans SC', sans-serif; /* 无衬线字体 */
        }


        /* 
         * 页面容器
         */
        .page-container {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            padding-top: 64px; /* 为固定导航栏留出空间 */
            font-family: var(--font-sans);
            color: var(--primary-brown);
            background-color: var(--off-white);
        }

        .page-content {
            display: none;
            flex-grow: 1;
        }
        .page-content.active {
            display: block; /* 激活的页面显示 */
        }

        /* 
         * 导航栏
         * 固定在页面顶部，包含网站 Logo 和导航链接
         */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 50; /* 确保导航栏在最上层 */
            padding: 16px 4vw;
            background-color: rgba(255,255,255,0.95);
            box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .navbar__logo {
            text-decoration: none;
            display: flex;
            align-items: center;
        }
        .navbar__logo-text {
            font-family: var(--font-calligraphy);
            font-size: 20px;
            color: var(--primary-green);
        }
        .navbar__links {
            display: flex;
            gap: 32px;
            align-items: center;
        }
        .navbar__link {
            text-decoration: none;
            color: var(--primary-brown);
            font-weight: 500;
        }
        .navbar__link:hover {
            color: var(--primary-green); 
        }

        /* 
         * 首页头部 (Hero Section)
         * 包含全屏背景图、标题和轮播组件
         */
        .hero {
            position: relative;
            height: 70vh;
            overflow: hidden;
        }
        .hero__bg {
            position: absolute;
            inset: 0;
            z-index: 0; 
        }
        .hero__bg-img {
            width: 100%;
            height: 100%;
            object-fit: cover; 
        }
        .hero__bg-overlay {
            position: absolute;
            inset: 0;
        }
        .hero__content {
            position: relative;
            z-index: 10; /* 内容层在上 */
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 0 4vw;
        }
        .hero__title {
            font-family: var(--font-calligraphy);
            color: var(--white);
            margin-bottom: 24px;
        }
        .hero__subtitle {
            color: var(--white);
            font-size: clamp(16px, 3vw, 24px);
            max-width: 768px;
            margin-bottom: 32px;
        }

        /* 
         * 首页轮播
         */
        .hero-carousel {
            width: 100%;
            max-width: 1120px;
            margin: 32px auto;
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
            height: 352px;
        }
        .hero-carousel__item {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 1s ease-in-out;
        }
        .hero-carousel__item.active {
            opacity: 1;
        }
        .hero-carousel__image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .hero-carousel__desc {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: rgba(0,0,0,0.6);
            color: var(--white);
            padding: 16px;
        }
        .hero-carousel__title {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 8px;
        }

        /* 轮播动画 */
        .hero-carousel__item:nth-child(1) {
            animation: carousel 25s infinite;
            animation-delay: 0s;
        }
        .hero-carousel__item:nth-child(2) {
            animation: carousel 25s infinite;
            animation-delay: 5s;
        }
        .hero-carousel__item:nth-child(3) {
            animation: carousel 25s infinite;
            animation-delay: 10s;
        }
        .hero-carousel__item:nth-child(4) {
            animation: carousel 25s infinite;
            animation-delay: 15s;
        }
        .hero-carousel__item:nth-child(5) {
            animation: carousel 25s infinite;
            animation-delay: 20s;
        }

        @keyframes carousel {
            0% { opacity: 0; }
            5% { opacity: 1; }
            20% { opacity: 1; }
            25% { opacity: 0; }
            100% { opacity: 0; }
        }

        /* 
         * 江西概况 & 景点精选 通用样式
         * 这两个区块结构相似，使用相同的背景图和覆盖层布局
         */
        .overview, .featured-attractions {
            position: relative;
            padding: 64px 4vw;
            overflow: hidden;
        }
        .overview__bg, .featured-attractions__bg {
            position: absolute;
            inset: 0;
            z-index: 0;
        }
        .overview__bg-img, .featured-attractions__bg-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .overview__bg-overlay, .featured-attractions__bg-overlay {
            position: absolute;
            inset: 0;
            background-color: rgba(0,0,0,0.5); /* 背景遮罩 */
        }
        .overview__content, .featured-attractions__content {
            position: relative;
            z-index: 10; 
            max-width: 1280px;
            margin: 0 auto;
        }
        .overview__title, .featured-attractions__title {
            font-family: var(--font-calligraphy);
            font-size: clamp(28.8px, 4vw, 48px);
            text-align: center;
            margin-bottom: 32px;
            color: var(--white);
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        }
        .overview__text {
            font-size: 16px;
            line-height: 1.6;
            margin-bottom: 16px;
            color: var(--white);
            text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
        }

        /* 
         * 景点精选网格
         * 使用 CSS Grid 布局展示多个景点卡片
         */
        .featured-attractions__grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* 响应式网格 */
            gap: 32px;
        }
        .feature-card {
            position: relative;
            overflow: hidden;
            border-radius: 16px;
            box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
            cursor: pointer;
            height: 256px;
        }
        .feature-card__image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.7s ease; /* 图片缩放过渡效果 */
        }
        .feature-card:hover .feature-card__image {
            transform: scale(1.1); /* hover 时图片放大 */
        }
        .feature-card__overlay {
            position: absolute;
            inset: 0;
        }
        .feature-card__content {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 24px;
        }
        .feature-card__title {
            font-size: 24px;
            font-weight: 700;
            color: var(--white);
            margin-bottom: 8px;
        }

        /* 
         * 景点分类页面
         * 展示不同类别的景点，如自然山水、人文古镇等
         */
        .categories-page {
            padding: 64px 4vw;
        }
        .categories-page__title {
            font-family: var(--font-calligraphy);
            font-size: clamp(28.8px, 4vw, 48px);
            text-align: center;
            color: var(--primary-green);
            margin-bottom: 48px;
        }
        .category {
            margin-bottom: 64px;
        }
        .category__title {
            font-size: clamp(24px, 3vw, 40px);
            font-weight: 700;
            margin-bottom: 24px;
            padding-left: 12px;
        }
        .category__title--brown {
            color: var(--primary-brown);
            border-left-color: var(--primary-brown);
        }
        .category__title--red {
            color: var(--primary-red);
            border-left-color: var(--primary-red);
        }
        /* 分类景点网格 */
        .category__grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 32px;
        }
        .attraction-card {
            width: 100%;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
            background-color: var(--white);
            cursor: pointer;
        }
        .attraction-card__image-container {
            position: relative;
            height: 256px;
            overflow: hidden;
        }
        .attraction-card__image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.7s ease;
        }
        .attraction-card:hover .attraction-card__image {
            transform: scale(1.1); /* hover 时图片放大 */
        }
        .attraction-card__title {
            position: absolute;
            top: 16px;
            left: 16px;
            right: 16px;
            font-size: 20px;
            font-weight: 700;
            color: var(--white);
            text-align: center;
            background-color: rgba(0,0,0,0.5); /* 标题背景遮罩 */
            padding: 8px;
            border-radius: 8px;
        }
        .attraction-card__content {
            padding: 20px;
        }
        .attraction-card__desc {
            font-size: 14px;
            color: var(--gray-dark);
            line-height: 1.6;
            margin-bottom: 16px;
        }
        .attraction-card__footer {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            font-size: 14px;
        }

        /* 
         * 旅游贴士页面
         * 使用网格布局展示多个旅游建议卡片
         */
        .tips-page {
            padding: 64px 4vw;
            background-color: var(--gray-light);
        }
        .tips-page__title {
            font-family: var(--font-calligraphy);
            font-size: clamp(28.8px, 4vw, 48px);
            text-align: center;
            color: var(--primary-green);
            margin-bottom: 48px;
        }
        .tips-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr); /* 三列网格 */
            gap: 32px;
            max-width: 1200px;
            margin: 0 auto;
        }
        .travel-tip-card {
            background-color: var(--white);
            padding: 24px;
            border-radius: 12px;
            box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
        }
        .travel-tip-card__title {
            font-size: 20px;
            font-weight: 700;
            color: var(--primary-brown);
            margin-bottom: 16px;
            border-left: 3px solid var(--primary-green);
            padding-left: 12px;
        }
        .travel-tip-card__title--red {
            border-left-color: var(--primary-red);
        }
        .travel-tip-card__list {
            list-style-type: disc;
            padding-left: 24px;
            color: var(--gray-dark);
            line-height: 1.8;
            font-size: 15.2px;
        }

        /* 
         * 景点详情模态框
         * 点击景点卡片后弹出，展示该景点的详细信息
         */
        .modal {
            position: fixed;
            inset: 0;
            z-index: 50; /* 确保模态框在最上层 */
            display: none; /* 默认隐藏 */
            align-items: center;
            justify-content: center;
        }
        .modal:not(.hidden) {
            display: flex; /* 移除 .hidden 类时显示 */
        }
        .modal__backdrop {
            position: absolute;
            inset: 0;
            background-color: rgba(0,0,0,0.7);
            backdrop-filter: blur(4px); /* 背景模糊效果 */
            cursor: pointer; /* 点击背景关闭模态框 */
        }
        .modal__content {
            position: relative;
            background-color: var(--white);
            border-radius: 16px;
            max-width: 1024px;
            width: 100%;
            max-height: 90vh; /* 最大高度为视口的 90% */
            overflow-y: auto; /* 内容超出时可滚动 */
            margin: 0 16px; /* 左右留边距 */
        }
        .modal__header {
            position: relative;
            height: 320px;
        }
        .modal__image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .modal__close {
            position: absolute;
            top: 16px;
            right: 16px;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: rgba(0,0,0,0.5);
            color: var(--white);
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
        }
        .modal__title {
            position: absolute;
            bottom: 24px;
            left: 24px;
            right: 24px;
            font-size: 30px;
            font-weight: 700;
            color: var(--white);
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        }
        .modal__body {
            padding: 24px;
        }
        .modal__tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 24px;
        }
        .modal__tag {
            padding: 8px 12px;
            border-radius: 999px; /* 圆形标签 */
            font-size: 14px;
            font-weight: 500;
        }
        .modal__section {
            margin-bottom: 24px;
        }
        .modal__section-title {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 12.8px;
        }
        .modal__description {
            color: var(--gray-dark);
            line-height: 1.6;
        }
        .modal__list {
            list-style-type: disc;
            padding-left: 24px;
            color: var(--gray-dark);
            line-height: 1.6;
        }

        /* 
         * 返回顶部按钮
         * 页面滚动后显示，点击返回页面顶部
         */
        .back-to-top {
            position: fixed;
            right: 24px;
            bottom: 24px;
            background-color: var(--primary-green);
            color: var(--white);
            width: 48px;
            height: 48px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0; /* 默认透明 */
            visibility: hidden; /* 默认隐藏 */
            transition: all 0.3s ease;
            z-index: 50;
            border: none;
            cursor: pointer;
        }
        .back-to-top.visible {
            opacity: 1; /* 可见时不透明 */
            visibility: visible; /* 可见时显示 */
        }

        /* 
         * 页脚
         * 包含网站底部导航和版权信息
         */
        .footer {
            background-color: var(--primary-brown);
            color: var(--white);
            padding: 32px 4vw;
        }
        .footer__content {
            max-width: 1280px;
            margin: 0 auto;
        }
        .footer__links {
            display: flex;
            justify-content: center;
            gap: 32px;
            margin-bottom: 24px;
        }
        .footer__link {
            color: var(--white);
            opacity: 0.8;
            text-decoration: none;
            transition: opacity 0.3s ease;
        }
        .footer__link:hover {
            opacity: 1; /* hover 时变亮 */
        }
        .footer__copyright {
            text-align: center;
            color: #9ca3af;
            font-size: 14px;
        }

    </style>
</head>
<body>
    <!-- 顶部导航栏：负责页面切换导航 -->
    <nav class="navbar">
        <a href="#" class="navbar__logo page-link" data-page="home">
            <span class="navbar__logo-text">江西旅游</span>
        </a>
        <div class="navbar__links">
            <a href="#" class="navbar__link page-link" data-page="home">首页</a>
            <a href="#" class="navbar__link page-link" data-page="categories">景点推荐</a>
            <a href="#" class="navbar__link page-link" data-page="travel-tips">旅游贴士</a>
        </div>
    </nav>

    <!-- 页面容器：包含所有页面内容 -->
    <div class="page-container">
        <!-- 首页内容：网站入口，包含头部轮播和简介 -->
        <div id="home" class="page-content active">
            <!-- 首页头部(Hero)：包含背景图、主标题和景点轮播 -->
            <header class="hero">
                <div class="hero__bg">
                    <img src="https://ts1.tc.mm.bing.net/th/id/R-C.d969d63c1a30be96279a5fecdc4116ce?rik=RHwfLS6LBeN11A&riu=http%3a%2f%2fwww.quazero.com%2fuploads%2fallimg%2f140304%2f1-140304215104.jpg&ehk=PJZig0QRwItu2c7Xbt9TlKPqKSbXPuDVi8oAbZZRWNo%3d&risl=&pid=ImgRaw&r=0" alt="江西山水风光" class="hero__bg-img">
                    <div class="hero__bg-overlay"></div>
                </div>
                <div class="hero__content">
                    <h1 class="hero__title">大美江西，诗画赣鄱</h1>
                    <p class="hero__subtitle">探索江西必去景点，感受自然与人文的交融之美</p>
                    
                    <!-- 首页轮播：展示热门景点 - 纯CSS实现 -->
                    <div class="hero-carousel">
                        <div class="hero-carousel__item">
                            <img src="https://bkimg.cdn.bcebos.com/pic/3ac79f3df8dcd100d0bb82aa788b4710b9122f11?x-bce-process=image/format,f_auto/resize,m_lfit,limit_1,h_500" alt="庐山" class="hero-carousel__image">
                            <div class="hero-carousel__desc">
                                <h3 class="hero-carousel__title">庐山 - 匡庐奇秀甲天下</h3>
                                <p class="hero-carousel__text">世界文化遗产，中国著名避暑胜地，以雄、奇、险、秀闻名</p>
                            </div>
                        </div>
                        <div class="hero-carousel__item">
                            <img src="https://pic2.zhimg.com/v2-4aa3747a8bf58eb67c326b691ddbc505_r.jpg" alt="武功山" class="hero-carousel__image">
                            <div class="hero-carousel__desc">
                                <h3 class="hero-carousel__title">武功山 - 云中草原</h3>
                                <p class="hero-carousel__text">万亩草甸，星空露营胜地，徒步爱好者的天堂</p>
                            </div>
                        </div>
                        <div class="hero-carousel__item">
                            <img src="https://ts1.tc.mm.bing.net/th/id/R-C.d6dc9f58e23d57ae723515c351056674?rik=sdnZezE3g8H6oQ&riu=http%3a%2f%2fn.sinaimg.cn%2fsinacn%2f20170810%2f9a67-fyixhyw6800859.jpg&ehk=sNcVbdkEGqdgReARxgzkQlvSHilYaJNeUG%2fhAyJKXoo%3d&risl=&pid=ImgRaw&r=0" alt="婺源" class="hero-carousel__image">
                            <div class="hero-carousel__desc">
                                <h3 class="hero-carousel__title">婺源 - 中国最美乡村</h3>
                                <p class="hero-carousel__text">春季油菜花海，秋季晒秋人家，徽派建筑聚集地</p>
                            </div>
                        </div>
                        <div class="hero-carousel__item">
                            <img src="https://c-ssl.duitang.com/uploads/item/202003/22/20200322160456_YtVeP.jpeg" alt="滕王阁" class="hero-carousel__image">
                            <div class="hero-carousel__desc">
                                <h3 class="hero-carousel__title">滕王阁 - 江南三大名楼之首</h3>
                                <p class="hero-carousel__text">因王勃《滕王阁序》闻名，登楼可俯瞰赣江美景</p>
                            </div>
                        </div>
                        <div class="hero-carousel__item">
                            <img src="https://youimg1.c-ctrip.com/target/100r190000015svce586C.jpg" alt="井冈山" class="hero-carousel__image">
                            <div class="hero-carousel__desc">
                                <h3 class="hero-carousel__title">井冈山 - 革命摇篮</h3>
                                <p class="hero-carousel__text">中国革命的摇篮，红色旅游胜地</p>
                            </div>
                        </div>
                    </div>
                </div>
            </header>
            
            <!-- 江西概况：介绍江西的基本情况和旅游特色 -->
            <section class="overview">
                <div class="overview__bg">
                    <img src="https://ts1.tc.mm.bing.net/th/id/R-C.ed96d3b7727fc493d519fca2cd6c067f?rik=kZoNtoknMN%2bFCQ&riu=http%3a%2f%2fpic.3h3.com%2fup%2f2014-5%2f20145517170838013048.jpg&ehk=lLwg84u9Hdq3R1omcZK1W%2b6lVOwkWS1NGRSju9IpGjQ%3d&risl=&pid=ImgRaw&r=0">
                    <div class="overview__bg-overlay"></div>
                </div>
                <div class="overview__content">
                    <h2 class="overview__title">江西概况</h2>
                    <p class="overview__text">江西，简称"赣"，位于中国东南部，长江中下游南岸。这里山清水秀，人文荟萃，既有雄奇险峻的自然风光，又有底蕴深厚的历史文化。</p>
                    <p class="overview__text">江西是中国革命的摇篮（井冈山、瑞金），也是陶瓷文化发源地（景德镇），旅游资源丰富多样，拥有庐山、三清山、龙虎山等世界遗产，婺源、井冈山等知名旅游目的地，每年吸引数百万游客前来探索。</p>
                    <p class="overview__text">江西四季分明，气候宜人，每个季节都有独特的旅游体验：春季赏花、夏季避暑、秋季观景、冬季温泉，是全年皆宜的旅游胜地。</p>
                </div>
            </section>

            <!-- 景点精选：以网格卡片形式展示多个代表性景点 -->
            <section class="featured-attractions">
                <div class="featured-attractions__bg">
                    <img src="https://picsum.photos/id/142/1920/1080" alt="江西风光" class="featured-attractions__bg-img">
                    <div class="featured-attractions__bg-overlay"></div>
                </div>
                <div class="featured-attractions__content">
                    <h2 class="featured-attractions__title">江西景点精选</h2>
                    <div class="featured-attractions__grid">
                        <!-- 庐山卡片 -->
                        <div class="feature-card page-link" data-page="categories">
                            <img src="https://img.pconline.com.cn/images/upload/upc/tx/photoblog/2005/09/c2/207256294_1589011258061_mthumb.jpg" alt="庐山" class="feature-card__image">
                            <div class="feature-card__overlay"></div>
                            <div class="feature-card__content">
                                <h3 class="feature-card__title">庐山</h3>
                            </div>
                        </div>
                        <!-- 婺源卡片 -->
                        <div class="feature-card page-link" data-page="categories">
                            <img src="https://ts1.tc.mm.bing.net/th/id/R-C.73d12582a037e4a6082aa54ee2b6e907?rik=un3%2feq2RJx5CjQ&riu=http%3a%2f%2fn.sinaimg.cn%2fsinakd20111%2f183%2fw1090h693%2f20230329%2faea2-2cc245302c634e3532c2922baa093e3a.jpg&ehk=Dbg295jk4D05RCQ32rxqMkkUBe1WluYDKcnUPmIVBkQ%3d&risl=&pid=ImgRaw&r=0" alt="婺源" class="feature-card__image">
                            <div class="feature-card__overlay"></div>
                            <div class="feature-card__content">
                                <h3 class="feature-card__title">婺源</h3>
                            </div>
                        </div>
                        <!-- 武功山卡片 -->
                        <div class="feature-card page-link" data-page="categories">
                            <img src="https://so1.360tres.com/t0166a94eb70f958078.jpg" alt="武功山" class="feature-card__image">
                            <div class="feature-card__overlay"></div>
                            <div class="feature-card__content">
                                <h3 class="feature-card__title">武功山</h3>
                            </div>
                        </div>
                        <!-- 井冈山卡片 -->
                        <div class="feature-card page-link" data-page="categories">
                            <img src="https://pic.huitu.com/pic/20220106/133953_20220106123146989060_0.jpg" alt="井冈山" class="feature-card__image">
                            <div class="feature-card__overlay"></div>
                            <div class="feature-card__content">
                                <h3 class="feature-card__title">井冈山</h3>
                            </div>
                        </div>
                        <!-- 滕王阁卡片 -->
                        <div class="feature-card page-link" data-page="categories">
                            <img src="https://x0.ifengimg.com/res/2021/457B9D2F589DFDDC8D67FB6DF4C6715568339F17_size123_w1080_h720.jpeg" alt="滕王阁" class="feature-card__image">
                            <div class="feature-card__overlay"></div>
                            <div class="feature-card__content">
                                <h3 class="feature-card__title">滕王阁</h3>
                            </div>
                        </div>
                        <!-- 瑞金卡片 -->
                        <div class="feature-card page-link" data-page="categories">
                            <img src="https://img1.qunarzz.com/travel/poi/1501/64/64527593a18fd66cdb.jpg_480x360x95_c6475a88.jpg" alt="瑞金" class="feature-card__image">
                            <div class="feature-card__overlay"></div>
                            <div class="feature-card__content">
                                <h3 class="feature-card__title">瑞金</h3>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
        </div>

        <!-- 景点推荐页面：按类别展示景点，并可点击查看详情 -->
        <div id="categories" class="page-content">
            <div class="categories-page">
                <h2 class="categories-page__title">江西精选景点</h2>
                
                <!-- 自然山水类景点 -->
                <section class="category">
                    <h3 class="category__title">自然山水类</h3>
                    <div class="category__grid">
                        <!-- 庐山景点卡片 -->
                        <div class="attraction-card" data-category="lushan">
                            <div class="attraction-card__image-container">
                                <img src="https://img.pconline.com.cn/images/upload/upc/tx/photoblog/2005/09/c2/207256294_1589011258061_mthumb.jpg" alt="庐山" class="attraction-card__image">
                                <h4 class="attraction-card__title">庐山</h4>
                            </div>
                            <div class="attraction-card__content">
                                <p class="attraction-card__desc">匡庐奇秀甲天下，以雄、奇、险、秀闻名，拥有三叠泉、含鄱口、五老峰等著名景点，是中国四大避暑胜地之一。</p>
                                <div class="attraction-card__footer">
                                    <button class="attraction-card__more">查看详情 <i class="fa fa-arrow-right"></i></button>
                                </div>
                            </div>
                        </div>
                        
                        <!-- 武功山景点卡片 -->
                        <div class="attraction-card" data-category="wugongshan">
                            <div class="attraction-card__image-container">
                                <img src="https://so1.360tres.com/t0166a94eb70f958078.jpg" alt="武功山" class="attraction-card__image">
                                <h4 class="attraction-card__title">武功山</h4>
                            </div>
                            <div class="attraction-card__content">
                                <p class="attraction-card__desc">拥有万亩高山草甸，是露营和观赏星空的绝佳地点，四季风光各异，尤以秋季云海最为壮观，是徒步爱好者的天堂。</p>
                                <div class="attraction-card__footer">
                                    <button class="attraction-card__more">查看详情 <i class="fa fa-arrow-right"></i></button>
                                </div>
                            </div>
                        </div>
                    </div>
                </section>
                
                <!-- 人文古镇类景点 -->
                <section class="category">
                    <h3 class="category__title category__title--brown">人文古镇类</h3>
                    <div class="category__grid">
                        <!-- 婺源景点卡片 -->
                        <div class="attraction-card" data-category="wuyuan">
                            <div class="attraction-card__image-container">
                                <img src="https://ts1.tc.mm.bing.net/th/id/R-C.73d12582a037e4a6082aa54ee2b6e907?rik=un3%2feq2RJx5CjQ&riu=http%3a%2f%2fn.sinaimg.cn%2fsinakd20111%2f183%2fw1090h693%2f20230329%2faea2-2cc245302c634e3532c2922baa093e3a.jpg&ehk=Dbg295jk4D05RCQ32rxqMkkUBe1WluYDKcnUPmIVBkQ%3d&risl=&pid=ImgRaw&r=0" alt="婺源" class="feature-card__image" alt="婺源" class="attraction-card__image">
                                <h4 class="attraction-card__title">婺源</h4>
                            </div>
                            <div class="attraction-card__content">
                                <p class="attraction-card__desc">以徽派建筑和田园风光闻名，春季江岭油菜花海、秋季篁岭晒秋是标志性景观，还有李坑、晓起等保存完好的古村落。</p>
                                <div class="attraction-card__footer">
                                    <button class="attraction-card__more attraction-card__more--brown">查看详情 <i class="fa fa-arrow-right"></i></button>
                                </div>
                            </div>
                        </div>
                        
                        <!-- 滕王阁景点卡片 -->
                        <div class="attraction-card" data-category="tengwangge">
                            <div class="attraction-card__image-container">
                                <img src="https://x0.ifengimg.com/res/2021/457B9D2F589DFDDC8D67FB6DF4C6715568339F17_size123_w1080_h720.jpeg" alt="滕王阁" class="attraction-card__image">
                                <h4 class="attraction-card__title">滕王阁</h4>
                            </div>
                            <div class="attraction-card__content">
                                <p class="attraction-card__desc">因王勃《滕王阁序》而闻名天下，登楼可俯瞰赣江美景，感受"落霞与孤鹜齐飞，秋水共长天一色"的诗意。</p>
                                <div class="attraction-card__footer">
                                    <button class="attraction-card__more">查看详情 <i class="fa fa-arrow-right"></i></button>
                                </div>
                            </div>
                        </div>
                    </div>
                </section>
                
                <!-- 红色旅游类景点 -->
                <section class="category">
                    <h3 class="category__title category__title--red">红色旅游类</h3>
                    <div class="category__grid">
                        <!-- 井冈山景点卡片 -->
                        <div class="attraction-card" data-category="jinggangshan">
                            <div class="attraction-card__image-container">
                                <img src="https://pic.huitu.com/pic/20220106/133953_20220106123146989060_0.jpg" alt="井冈山" class="attraction-card__image">
                                <h4 class="attraction-card__title">井冈山</h4>
                            </div>
                            <div class="attraction-card__content">
                                <p class="attraction-card__desc">中国革命的摇篮，拥有众多革命遗址和纪念场馆，是爱国主义教育基地，同时自然风光秀丽，适合红色旅游和生态旅游。</p>
                                <div class="attraction-card__footer">
                                    <button class="attraction-card__more attraction-card__more--red">查看详情 <i class="fa fa-arrow-right"></i></button>
                                </div>
                            </div>
                        </div>
                        
                        <!-- 瑞金景点卡片 -->
                        <div class="attraction-card" data-category="ruijin">
                            <div class="attraction-card__image-container">
                                <img src="https://img1.qunarzz.com/travel/poi/1501/64/64527593a18fd66cdb.jpg_480x360x95_c6475a88.jpg" alt="瑞金" class="attraction-card__image">
                                <h4 class="attraction-card__title">瑞金红色景区</h4>
                            </div>
                            <div class="attraction-card__content">
                                <p class="attraction-card__desc">中华苏维埃共和国临时中央政府诞生地，保留了大量革命历史遗迹，包括叶坪革命旧址群、红井等著名景点。</p>
                                <div class="attraction-card__footer">
                                    <button class="attraction-card__more attraction-card__more--red">查看详情 <i class="fa fa-arrow-right"></i></button>
                                </div>
                            </div>
                        </div>
                    </div>
                </section>
            </div>
        </div>
        
        <!-- 旅游贴士页面：提供出行建议、交通、美食等信息 -->
        <section id="travel-tips" class="page-content">
            <div class="tips-page">
                <h2 class="tips-page__title">旅游贴士</h2>
                <div class="tips-grid">
                    <!-- 最佳旅游时间 -->
                    <div class="travel-tip-card">
                        <h3 class="travel-tip-card__title">最佳旅游时间</h3>
                        <ul class="travel-tip-card__list">
                            <li class="travel-tip-card__list-item">春季（3-5月）：婺源油菜花、庐山杜鹃花、井冈山杜鹃花海</li>
                            <li class="travel-tip-card__list-item">夏季（6-8月）：庐山、武功山等山区避暑</li>
                            <li class="travel-tip-card__list-item">秋季（9-11月）：婺源晒秋、庐山红叶</li>
                            <li class="travel-tip-card__list-item">冬季（12-2月）：庐山雾凇、温泉度假（如宜春温汤镇）</li>
                        </ul>
                    </div>
                    <!-- 交通指南 -->
                    <div class="travel-tip-card">
                        <h3 class="travel-tip-card__title--red">交通指南</h3>
                        <ul class="travel-tip-card__list">
                            <li class="travel-tip-card__list-item">航空：南昌昌北国际机场、赣州黄金机场等</li>
                            <li class="travel-tip-card__list-item">高铁：沪昆高铁、京九高铁贯穿全省，主要城市均有高铁站</li>
                            <li class="travel-tip-card__list-item">景区交通：部分景区内部需乘坐观光车，如庐山</li>
                            <li class="travel-tip-card__list-item">自驾：江西高速公路网络发达，适合自驾游，尤其婺源乡村路段</li>
                            <li class="travel-tip-card__list-item">长途汽车：连接各市县及主要景区，班次频繁</li>
                        </ul>
                    </div>
                    <!-- 特色美食推荐 -->
                    <div class="travel-tip-card">
                        <h3 class="travel-tip-card__title--blue">特色美食推荐</h3>
                        <ul class="travel-tip-card__list">
                            <li class="travel-tip-card__list-item">南昌：瓦罐汤、炒粉、藜蒿炒腊肉、白糖糕</li>
                            <li class="travel-tip-card__list-item">九江：庐山云雾茶、湖口蒸米糕、萝卜饼</li>
                            <li class="travel-tip-card__list-item">婺源：粉蒸肉、糊豆腐、蒸汽糕、糯米子糕</li>
                            <li class="travel-tip-card__list-item">赣南：客家酿豆腐、三杯鸡、艾米果</li>
                        </ul>
                    </div>
                    <!-- 实用注意事项 -->
                    <div class="travel-tip-card">
                        <h3 class="travel-tip-card__title--yellow">实用注意事项</h3>
                        <ul class="travel-tip-card__list">
                            <li class="travel-tip-card__list-item">山区温差大，即使夏季也需携带薄外套，尤其早晚温差明显</li>
                            <li class="travel-tip-card__list-item">春季婺源、秋季庐山等热门景点游客较多，建议提前预订住宿</li>
                            <li class="travel-tip-card__list-item">徒步武功山等景区，建议穿舒适防滑的运动鞋</li>
                            <li class="travel-tip-card__list-item">尊重当地风俗习惯，进入宗教场所请遵守相关规定</li>
                            <li class="travel-tip-card__list-item">部分景区海拔较高，注意防晒，备好防晒用品</li>
                            <li class="travel-tip-card__list-item">提前了解景区开放时间和门票预约政策，尤其是节假日</li>
                        </ul>
                    </div>
                    <!-- 经典旅游线路 -->
                    <div class="travel-tip-card">
                        <h3 class="travel-tip-card__title">经典旅游线路</h3>
                        <ul class="travel-tip-card__list">
                            <li class="travel-tip-card__list-item">山水精华游：南昌（滕王阁）- 九江（庐山）- 婺源</li>
                            <li class="travel-tip-card__list-item">红色文化游：南昌（八一起义纪念馆）- 吉安（井冈山）- 赣州（瑞金）</li>
                            <li class="travel-tip-card__list-item">自然奇观游：庐山 - 武功山</li>
                            <li class="travel-tip-card__list-item">文化体验游：婺源（徽文化）- 赣州（客家文化）</li>
                        </ul>
                    </div>
                    <!-- 住宿建议 -->
                    <div class="travel-tip-card">
                        <h3 class="travel-tip-card__title--red">住宿建议</h3>
                        <ul class="travel-tip-card__list">
                            <li class="travel-tip-card__list-item">南昌：建议住在滕王阁附近或八一广场周边，交通便利</li>
                            <li class="travel-tip-card__list-item">庐山：可选择山上酒店体验山间生活，或山下牯岭镇住宿</li>
                            <li class="travel-tip-card__list-item">婺源：篁岭景区内有特色民宿，江岭附近有农家乐</li>
                            <li class="travel-tip-card__list-item">武功山：金顶有客栈，也可选择帐篷露营体验星空</li>
                            <li class="travel-tip-card__list-item">旅游旺季（如婺源春季）建议提前1-2周预订住宿</li>
                        </ul>
                    </div>
                </div>
            </div>
        </section>
        
        <!-- 景点详情模态框：点击景点卡片后弹出显示详细信息 -->
        <div id="detail-modal" class="modal hidden">
            <div class="modal__backdrop" id="modal-backdrop"></div>
            <div class="modal__content">
                <div class="modal__header">
                    <img id="modal-image" src="" alt="" class="modal__image">
                    <button id="close-modal" class="modal__close"><i class="fa fa-times"></i></button>
                    <div class="modal__header-overlay"></div>
                    <h2 id="modal-title" class="modal__title"></h2>
                </div>
                <div class="modal__body">
                    <div class="modal__tags">
                        <span id="modal-tag" class="modal__tag"></span>
                        <span class="modal__location"><i class="fa fa-map-marker"></i><span id="modal-location-text"></span></span>
                    </div>
                    
                    <!-- 景点详情描述 -->
                    <div class="modal__section">
                        <h3 class="modal__section-title">景点详情</h3>
                        <p id="modal-description" class="modal__description"></p>
                    </div>
                    <!-- 核心景点推荐 -->
                    <div class="modal__section">
                        <h3 class="modal__section-title">核心景点推荐</h3>
                        <ul id="modal-highlights" class="modal__list"></ul>
                    </div>
                    <!-- 游览贴士 -->
                    <div class="modal__section">
                        <h3 class="modal__section-title">游览贴士</h3>
                        <ul id="modal-tips" class="modal__list"></ul>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 返回顶部按钮：页面滚动时显示，点击返回顶部 -->
        <button id="back-to-top" class="back-to-top"><i class="fa fa-chevron-up"></i></button>
        
        <!-- 页脚：包含底部导航和版权信息 -->
        <footer class="footer">
            <div class="footer__content">
                <div class="footer__links">
                    <a href="#" class="footer__link page-link" data-page="home">首页</a>
                    <a href="#" class="footer__link page-link" data-page="categories">必去景点</a>
                    <a href="#" class="footer__link page-link" data-page="travel-tips">旅游贴士</a>
                </div>
                <div class="footer__copyright">
                    <p>© 2025 江西旅游网 版权所有 | 赣ICP备XXXXXXXX号</p>
                    <p>旅游投诉电话：12345 | 旅游咨询热线：12348888</p>
                </div>
            </div>
        </footer>
    </div>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 1. 页面切换功能
            // 实现点击导航链接在不同页面内容间切换
            const pageLinks = document.querySelectorAll('.page-link');
            const pageContents = document.querySelectorAll('.page-content');
            
            function switchPage(pageId) {
                // 移除所有页面的 active 类
                pageContents.forEach(page => page.classList.remove('active'));
                // 为目标页面添加 active 类
                const targetPage = document.getElementById(pageId);
                if (targetPage) {
                    targetPage.classList.add('active');
                    window.scrollTo({ top: 0, behavior: 'smooth' }); // 平滑滚动到顶部
                }
            }
            
            // 为所有带有 .page-link 类的链接添加点击事件
            pageLinks.forEach(link => {
                link.addEventListener('click', function(e) {
                    e.preventDefault(); // 阻止默认跳转行为
                    const targetPageId = this.getAttribute('data-page'); // 获取目标页面 ID
                    switchPage(targetPageId);
                });
            });

            // 2. 景点详情模态框功能
            // 点击景点卡片时，弹出模态框显示该景点的详细信息
            const categoryCards = document.querySelectorAll('.attraction-card');
            const detailModal = document.getElementById('detail-modal');
            const closeModal = document.getElementById('close-modal');
            const modalBackdrop = document.getElementById('modal-backdrop');
            
            // 模态框内各元素的引用
            const modalTitle = document.getElementById('modal-title');
            const modalImage = document.getElementById('modal-image');
            const modalDescription = document.getElementById('modal-description');
            const modalTag = document.getElementById('modal-tag');
            const modalTips = document.getElementById('modal-tips');
            const modalLocationText = document.getElementById('modal-location-text');
            const modalHighlights = document.getElementById('modal-highlights');

            // 景点数据
            // 存储所有景点的详细信息，供模态框调用
            const attractionsData = {
                lushan: {
                    title: "庐山 - 匡庐奇秀甲天下",
                    image: "https://ts1.tc.mm.bing.net/th/id/R-C.4d82a62e5d3eadf14d3a6e0c54268d1f?rik=gqPJfVOv4O25zA&riu=http%3a%2f%2fpic.kuaizhan.com%2fg3%2f93%2f6b%2fa97d-cc66-42d4-bacb-40892f6cbb0327&ehk=1Za%2feC%2b7FAgQi2rqLyOAsnfblLspL0rYdkmth9d%2fnak%3d&risl=&pid=ImgRaw&r=0",
                    tag: "自然山水 | 世界文化遗产",
                    tagClass: "bg-primary-green text-white",
                    location: "九江市",
                    description: "庐山位于江西省九江市，是中国著名的旅游胜地和避暑胜地，以雄、奇、险、秀闻名于世。庐山有众多瀑布，其中三叠泉瀑布被誉为'庐山第一奇观'，落差达155米，分三叠飞泻而下，气势磅礴。庐山还是中国山水文化的重要发源地之一，历代文人墨客留下了大量诗词歌赋。",
                    highlights: [
                        "三叠泉：庐山第一奇观，三级瀑布层层叠叠，落差155米",
                        "含鄱口：观日出、赏鄱阳湖全景的最佳位置，视野开阔",
                        "五老峰：形似五位老人并肩而坐，峰峦险峻，风景秀丽",
                        "花径：相传为唐代诗人白居易咏桃花之处，春季桃花盛开",
                        "如琴湖：湖形似小提琴，湖水清澈，周围绿树环绕"
                    ],
                    tips: [
                        "最佳游览季节：4-10月，夏季气候凉爽，适合避暑",
                        "山上气温较低，即使夏季也需携带薄外套",
                        "三叠泉台阶较多（约1400级），建议穿舒适的运动鞋",
                        "景区较大，建议安排2-3天游览，可乘坐景区观光车",
                        "门票：160元/人，三叠泉索道单程80元"
                    ]
                },
                wugongshan: {
                    title: "武功山 - 云中草原",
                    image: "https://youimg1.c-ctrip.com/target/100813000000ua32v0B4D.jpg",
                    tag: "自然山水 | 高山草甸",
                    tagClass: "bg-primary-green text-white",
                    location: "萍乡市",
                    description: "武功山位于江西省萍乡市，是国家级风景名胜区，以其独特的高山草甸景观而闻名，被誉为'云中草原'。武功山主峰金顶海拔1918.3米，山顶有近10万亩的高山草甸，是华东地区最大的高山草甸群。这里是徒步爱好者的天堂，也是观赏星空和云海的绝佳地点。",
                    highlights: [
                        "金顶：武功山主峰，可俯瞰万亩草甸和云海，有标志性金顶观音像",
                        "发云界：草甸最为茂密的区域，云海出现频率高，风景如画",
                        "星空营地：露营观星的最佳地点，配套设施完善，夜晚星空璀璨",
                        "绝望坡：著名的徒步路段，坡度陡峭，挑战自我的好地方",
                        "吊马桩：连接金顶和绝望坡的重要节点，周围风景秀丽"
                    ],
                    tips: [
                        "最佳游览季节：5-10月，夏季适合避暑露营，秋季云海壮观",
                        "徒步路线：常规路线为沈子村-金顶-发云界，全程约2-3天",
                        "装备建议：穿防滑徒步鞋、携带登山杖、头灯、保暖衣物",
                        "可选择索道上下山：中庵索道上行65元，下行50元；金顶索道上行35元，下行25元",
                        "山顶温差大，即使夏季夜晚也较冷，需准备保暖装备"
                    ]
                },
                wuyuan: {
                    title: "婺源 - 中国最美乡村",
                    image: "https://ts1.tc.mm.bing.net/th/id/R-C.73d12582a037e4a6082aa54ee2b6e907?rik=un3%2feq2RJx5CjQ&riu=http%3a%2f%2fn.sinaimg.cn%2fsinakd20111%2f183%2fw1090h693%2f20230329%2faea2-2cc245302c634e3532c2922baa093e3a.jpg&ehk=Dbg295jk4D05RCQ32rxqMkkUBe1WluYDKcnUPmIVBkQ%3d&risl=&pid=ImgRaw&r=0",
                    tag: "人文古镇 | 田园风光",
                    tagClass: "bg-primary-brown text-white",
                    location: "上饶市",
                    description: "婺源位于江西省东北部，是古徽州一府六县之一，以其独特的徽派建筑和优美的田园风光被誉为'中国最美乡村'。婺源的春季和秋季是最美的季节，春季油菜花海烂漫，秋季晒秋景观独特。这里保存了大量完好的古村落，白墙黛瓦的徽派建筑与青山绿水相映成趣。",
                    highlights: [
                        "江岭：中国四大油菜花海之一，春季层层梯田开满油菜花，景色迷人",
                        "篁岭：以'晒秋'闻名，是婺源旅游的标志性景点，古村落建在悬崖之上",
                        "李坑：保存完好的古村落，小桥流水人家，展现典型的徽州水乡风貌",
                        "晓起：分为上晓起和下晓起，以古樟树群和明清建筑著称",
                        "江湾：国家级文化名村，保留了大量明清时期的古建筑"
                    ],
                    tips: [
                        "最佳游览季节：3-4月（油菜花）、10-11月（晒秋）",
                        "春季游客较多，建议提前预订住宿和门票",
                        "婺源景点分散，建议包车或自驾游览，也可乘坐景区直通车",
                        "联票包含12个景点，有效期5天，价格180元/人",
                        "篁岭景区需单独购票，145元/人（含索道）",
                        "品尝当地特色：粉蒸肉、糊豆腐、蒸汽糕"
                    ]
                },
                tengwangge: {
                    title: "滕王阁 - 江南三大名楼之首",
                    image: "https://p1.ssl.qhmsg.com/t012115c5f46ad705ba.jpg",
                    tag: "历史文化 | 江南名楼",
                    tagClass: "bg-secondary-yellow text-primary-brown",
                    location: "南昌市",
                    description: "滕王阁位于江西省南昌市赣江东岸，是中国古代皇家楼阁，与湖北武汉黄鹤楼、湖南岳阳楼并称为'江南三大名楼'，且居三大名楼之首。因初唐诗人王勃所作《滕王阁序》而名传千古，其中'落霞与孤鹜齐飞，秋水共长天一色'更是千古名句。",
                    highlights: [
                        "主阁：滕王阁的主体建筑，高57.5米，气势恢宏，雕梁画栋",
                        "《滕王阁序》碑刻：保存了王勃《滕王阁序》的全文，书法精美",
                        "赣江风光：登阁远眺，可欣赏赣江美景和南昌城市风光",
                        "滕王阁博物馆：展示滕王阁的历史变迁和相关文物",
                        "仿古表演：每日有古装表演，重现古代滕王阁的繁华景象"
                    ],
                    tips: [
                        "最佳游览时间：春秋两季，气候宜人，适合登阁远眺",
                        "建议在阁内聆听《滕王阁序》讲解，了解历史背景",
                        "晚上滕王阁有灯光秀，夜景十分美丽，可安排夜游",
                        "门票：50元/人，学生凭学生证半价",
                        "开放时间：8:00-18:30（夏季），8:00-17:30（冬季）",
                        "周边景点：可一并游览南昌八一起义纪念馆、绳金塔"
                    ]
                },
                jinggangshan: {
                    title: "井冈山 - 革命摇篮",
                    image: "https://ts1.tc.mm.bing.net/th/id/R-C.534c2837345e53772700622fec297cd1?rik=1T52wOWcMUvGcg&riu=http%3a%2f%2fwww.hnpictures.com%2fuploadpic%2f201112%2f2011120323544081.jpg&ehk=AhqcXaGX4MqeU83oksjx5CSlEMiVLFasYn0xsL3EYtY%3d&risl=&pid=ImgRaw&r=0",
                    tag: "红色旅游 | 革命圣地",
                    tagClass: "bg-primary-red text-white",
                    location: "吉安市",
                    description: "井冈山位于江西省吉安市，是中国革命的摇篮，也是国家级风景名胜区、国家5A级旅游景区。1927年，毛泽东、朱德等老一辈无产阶级革命家在这里创建了中国第一个农村革命根据地，开辟了'农村包围城市，武装夺取政权'的革命道路。井冈山既有丰富的红色旅游资源，也有秀丽的自然风光。",
                    highlights: [
                        "茨坪：井冈山革命根据地的中心，有毛泽东旧居、井冈山革命博物馆",
                        "黄洋界：著名的黄洋界保卫战发生地，地势险要，有'一夫当关，万夫莫开'之势",
                        "井冈山革命烈士陵园：纪念为革命牺牲的烈士，庄严肃穆",
                        "五指峰：井冈山主峰，因形似五指而得名，是中国第四套人民币100元背面图案",
                        "龙潭：以瀑布群著称，有五潭十八瀑，自然风光秀丽"
                    ],
                    tips: [
                        "最佳游览季节：4-10月，气候适宜，景色优美",
                        "建议安排2-3天游览，可全面了解革命历史和自然风光",
                        "联票（含主要景点）165元/人，有效期5天",
                        "景区内有观光车，通票80元/人，建议购买",
                        "山上气温较低，即使夏季也需携带薄外套",
                        "参观红色景点时请保持肃穆，尊重历史"
                    ]
                },
                ruijin: {
                    title: "瑞金共和国摇篮景区",
                    image: "https://bpic.588ku.com/back_origin_min_pic/21/06/28/73168d4ffde7088a42849e748a03008f.jpg",
                    tag: "红色旅游 | 共和国摇篮",
                    tagClass: "bg-primary-red text-white",
                    location: "赣州市",
                    description: "瑞金位于江西省赣州市，是中华苏维埃共和国临时中央政府诞生地，被誉为'共和国摇篮'。这里保留了大量革命历史遗迹，是全国重点文物保护单位、国家5A级旅游景区和全国爱国主义教育示范基地。瑞金红色景区包括叶坪、红井、二苏大等多个景点，全面展示了中国共产党在中央苏区的革命历史。",
                    highlights: [
                        "叶坪革命旧址群：中华苏维埃第一次全国代表大会召开地，有'一苏大'会址等",
                        "红井：毛泽东同志亲自带领群众开挖的水井，'吃水不忘挖井人'的故事发源地",
                        "二苏大旧址：中华苏维埃第二次全国代表大会召开地，建筑宏伟",
                        "中华苏维埃纪念园：大型红色主题纪念园，有大量雕塑和纪念馆",
                        "中央革命根据地历史博物馆：全面展示中央苏区革命历史的综合性博物馆"
                    ],
                    tips: [
                        "最佳游览季节：全年适宜，红色旅游不受季节影响",
                        "建议游览时间：1-2天，可系统了解中央苏区历史",
                        "联票（含主要景点）100元/人",
                        "建议请讲解员或租用讲解器，更好地了解历史背景",
                        "适合开展爱国主义教育活动，团体参观可提前预约",
                        "周边景点：可参观兴国将军园、于都长征出发地"
                    ]
                }
            };

            // 模态框点击事件
            categoryCards.forEach(card => {
                card.addEventListener('click', function() {
                    const category = this.dataset.category;
                    const data = attractionsData[category];
                    if (data) {
                        modalTitle.textContent = data.title;
                        modalImage.src = data.image;
                        modalImage.alt = data.title;
                        modalDescription.textContent = data.description;
                        modalTag.textContent = data.tag;
                        modalTag.className = `modal__tag ${data.tagClass}`;
                        modalLocationText.textContent = data.location;

                        // 填充核心景点和贴士
                        modalHighlights.innerHTML = '';
                        data.highlights.forEach(highlight => {
                            const li = document.createElement('li');
                            li.className = 'modal__list-item';
                            li.textContent = highlight;
                            modalHighlights.appendChild(li);
                        });
                        modalTips.innerHTML = '';
                        data.tips.forEach(tip => {
                            const li = document.createElement('li');
                            li.className = 'modal__list-item';
                            li.textContent = tip;
                            modalTips.appendChild(li);
                        });

                        detailModal.classList.remove('hidden');
                        document.body.style.overflow = 'hidden';
                    }
                });
            });

            // 关闭模态框
            function closeModalFunc() {
                detailModal.classList.add('hidden');
                document.body.style.overflow = '';
            }
            closeModal.addEventListener('click', closeModalFunc);
            modalBackdrop.addEventListener('click', closeModalFunc);

            // 3. 返回顶部按钮
            const backToTopBtn = document.getElementById('back-to-top');
            window.addEventListener('scroll', () => {
                backToTopBtn.classList.toggle('visible', window.scrollY > 300);
            });
            backToTopBtn.addEventListener('click', () => {
                window.scrollTo({ top: 0, behavior: 'smooth' });
            });
        });
    </script>
</body>
</html>